Skip to content

Conversation

@agarny
Copy link
Contributor

@agarny agarny commented Feb 8, 2026

No description provided.

This occurs locally when trying to retrieve some JSON from the response, which fails since we can't retrieve the version.json file. However, we don't care when this happens since it only happens when testing things locally.
Copilot AI review requested due to automatic review settings February 8, 2026 23:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs small cleanup changes in the renderer update-checking logic and bumps the project version.

Changes:

  • Remove error logging from the web update-checking catch path.
  • Bump version from 0.20260209.0 to 0.20260209.1 in both root and renderer package.json.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/renderer/src/common/version.ts Adjusts error handling behavior when the web app checks for updates.
src/renderer/package.json Increments renderer package version.
package.json Increments root package version.
Comments suppressed due to low confidence (1)

src/renderer/src/common/version.ts:60

  • The catch block now swallows all fetch/JSON/network errors without any logging. That makes update-check failures silent and harder to diagnose in production (e.g., CORS issues, malformed version.json). Consider keeping a minimal warning (optionally gated to dev) and/or formatting the caught error before resetting state.
  } catch (_error: unknown) {
    updateAvailable.value = false;
    latestVersion.value = '';

    return false;
  }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agarny agarny merged commit 37782b5 into opencor:main Feb 8, 2026
14 checks passed
@agarny agarny deleted the cleaning-up branch February 8, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant